package cn.xing.managementSystem.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author cuixing
 * @package cn.xing.managementSystem.domain
 * @class SysUser
 * @email xing.cui@magicwindow.cn
 * @date 2018/4/21 上午11:32
 * @description
 */
@Data
@Table(name="sys_user")
@Entity
public class SysUser extends BaseEntity {

    /**
     * 用户名
     */
    @JSONField(name = "username")
    @JsonProperty("username")
    @Column(name="username")
    private String username;

    /**
     * 密码
     */
    @JSONField(name = "password")
    @JsonProperty("password")
    @Column(name="password")
    private String password;

    /**
     * email
     */
    @JSONField(name = "email")
    @JsonProperty("email")
    @Column(name="email")
    private String email;

    /**
     * 真实姓名
     */
    @JSONField(name = "real_name")
    @JsonProperty("real_name")
    @Column(name="real_name")
    private String realName;

    /**
     * 手机
     */
    @JSONField(name = "mobile")
    @JsonProperty("mobile")
    @Column(name="mobile")
    private String mobile;


}